MEMCPY
Section: C Library Functions (3)
Index
Return to Main Contents
BSD mandoc
NAME
memcpy
- copy byte string
SYNOPSIS
Fd #include <string.h>
Ft void *
Fn memcpy void *dst const void *src size_t len
DESCRIPTION
The
Fn memcpy
function
copies
Fa len
bytes from string
Fa src
to string
Fa dst .
RETURN VALUES
The
Fn memcpy
function
returns the original value of
Fa dst .
SEE ALSO
bcopy(3),
memccpy(3),
memmove(3),
strcpy(3)
STANDARDS
The
Fn memcpy
function
conforms to
St -ansiC .
BUGS
In this implementation
Fn memcpy
is implemented using
bcopy(3),
and therefore the strings may overlap.
On other systems, copying overlapping strings may produce surprises.
A simpler solution is to not use
Fn memcpy .
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- SEE ALSO
-
- STANDARDS
-
- BUGS
-
This document was created by
man2html,
using the manual pages.
Time: 19:41:57 GMT, December 25, 2022